package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.PotentialCustomer;
import cn.wolfcode.crm.query.PotentialCustomerQueryObject;
import cn.wolfcode.crm.query.QueryForObject;

import java.util.List;

public interface PotentialCustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PotentialCustomer record);

    PotentialCustomer selectByPrimaryKey(Long id);

    List<PotentialCustomer> selectAll();

    int updateByPrimaryKey(PotentialCustomer record);

    int getTotalByQo(QueryForObject qo);

    List<PotentialCustomer> getListByQo(QueryForObject qo);

    void updateStateById(PotentialCustomer potentialCustomer);

    void updateByFollowStudentPotentialCustomer(PotentialCustomer potentialcustomer);

    void updateClassByExamination(PotentialCustomer potentialCustomer);

    int getyResourcePoolTotalByQo(PotentialCustomerQueryObject qo);

    List<PotentialCustomer> getyResourcePoolListByQo(PotentialCustomerQueryObject qo);

    void updateMarketingPersonAndStateById(PotentialCustomer potentialCustomer);

    int queryPotentialCustomerNumberBySchoolId(Long id);

    void become(PotentialCustomer potentialCustome);
}